package com.example.demo.service.impl;

import com.example.demo.model.Order;
import com.example.demo.repository.OrderRepository;
import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderJpaService implements OrderService {
    @Autowired
    public OrderRepository orderRepository;

    @Override
    public void addNewOrder(Order order) {
         orderRepository.save(order);
    }
}
